<template>
	<view class="content">
		<view>
			<!-- 解决方案 -->
			<view class="bg text-white" style="font-size: 16px;">
				{{ data.answer }}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:{}
			}
		},
		onLoad(option) {
			this.id = option.id;
			console.log(this.id)
			uni.setNavigationBarTitle({
				title: option.name
			})
			this.getData();
		},
		methods: {
			getData() {
				this.$myRequest({
					url: "/getQues/" + this.id,
					method: "get",
					data: {
						id: this.id
					}
				}).then(r => {
					console.log(r);
					this.data = r.data.data.data;
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #111224;
	}

	.bg {
		background-color: #1E1F31;
	}
</style>
